#
LIBRARY_PATH = /home/wangying/qtsdk-2009.02/qt/lib 

all:test plsa_train testdoublesize

test:test.o symmeig.o
	g++ -Wall -o test test.o symmeig.o  -lQtGui -lQtCore
test.o:test.cpp symmeig.h blas.h ncvector.h ncmatrix.h statistical.h process.h cholesky.h imageio.h kmeans.h gmm.h semigmm.h mixbern.h logistic.h loopybp.h imagerestore.h plsa.h
	g++ -Wall -I/home/wangying/qtsdk-2009.02/qt/include -c test.cpp
#
symmeig.o:symmeig.cpp symmeig.h
	g++ -Wall -c symmeig.cpp
#
plsa_train:plsa_train.o
	g++ -Wall -o plsa_train plsa_train.o
plsa_train.o:plsa_train.cpp plsa.h ncvector.h ncmatrix.h mathutils.h
	g++ -Wall -c plsa_train.cpp
testdoublesize:testdoublesize.o
	g++ -Wall -o testdoublesize testdoublesize.o -lQtGui -lQtCore
testdoublesize.o:testdoublesize.cpp ncmatrix.h
	g++ -Wall -I/home/wangying/qtsdk-2009.02/qt/include -c testdoublesize.cpp
clean:
	rm -f test test.o symmeig.o plsa_train.o plsa_train testdoublesize.o testdoublesize
